package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 客户信息管理对象 customer
 * 
 * @author ruoyi
 * @date 2024-03-22
 */
public class Customer extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 用户编号 */
    @Excel(name = "用户编号")
    private String accountNo;

    /** 欧电云第三方用户id */
    private String userId;

    /** 微信的unionid */
    private String wechatUnionid;

    /** 小程序openid */
    private String miniOpenid;

    /**  */
    @Excel(name = "")
    private Long sex;

    /**  */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birthday;

    /** 修改生日时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改生日时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updateBirthdayDate;

    /**  */
    @Excel(name = "")
    private String mobile;

    /**  */
    private String wechatHead;

    /** 卡籍店编号 */
    @Excel(name = "卡籍店编号")
    private String cardChannel;

    /** 上次修改卡籍店时间 */
    @Excel(name = "上次修改卡籍店时间")
    private String lastUpdateChannelTime;

    /**  */
    @Excel(name = "")
    private String name;

    /** 微信昵称 */
    @Excel(name = "微信昵称")
    private String nickname;

    /** 微信头像 */
    @Excel(name = "微信头像")
    private String avatar;

    /** 微信的会话密钥 */
    @Excel(name = "微信的会话密钥")
    private String sessionKey;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setAccountNo(String accountNo) 
    {
        this.accountNo = accountNo;
    }

    public String getAccountNo() 
    {
        return accountNo;
    }
    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }
    public void setWechatUnionid(String wechatUnionid) 
    {
        this.wechatUnionid = wechatUnionid;
    }

    public String getWechatUnionid() 
    {
        return wechatUnionid;
    }
    public void setMiniOpenid(String miniOpenid) 
    {
        this.miniOpenid = miniOpenid;
    }

    public String getMiniOpenid() 
    {
        return miniOpenid;
    }
    public void setSex(Long sex) 
    {
        this.sex = sex;
    }

    public Long getSex() 
    {
        return sex;
    }
    public void setBirthday(Date birthday) 
    {
        this.birthday = birthday;
    }

    public Date getBirthday() 
    {
        return birthday;
    }
    public void setUpdateBirthdayDate(Date updateBirthdayDate) 
    {
        this.updateBirthdayDate = updateBirthdayDate;
    }

    public Date getUpdateBirthdayDate() 
    {
        return updateBirthdayDate;
    }
    public void setMobile(String mobile) 
    {
        this.mobile = mobile;
    }

    public String getMobile() 
    {
        return mobile;
    }
    public void setWechatHead(String wechatHead) 
    {
        this.wechatHead = wechatHead;
    }

    public String getWechatHead() 
    {
        return wechatHead;
    }
    public void setCardChannel(String cardChannel) 
    {
        this.cardChannel = cardChannel;
    }

    public String getCardChannel() 
    {
        return cardChannel;
    }
    public void setLastUpdateChannelTime(String lastUpdateChannelTime) 
    {
        this.lastUpdateChannelTime = lastUpdateChannelTime;
    }

    public String getLastUpdateChannelTime() 
    {
        return lastUpdateChannelTime;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setNickname(String nickname) 
    {
        this.nickname = nickname;
    }

    public String getNickname() 
    {
        return nickname;
    }
    public void setAvatar(String avatar) 
    {
        this.avatar = avatar;
    }

    public String getAvatar() 
    {
        return avatar;
    }
    public void setSessionKey(String sessionKey) 
    {
        this.sessionKey = sessionKey;
    }

    public String getSessionKey() 
    {
        return sessionKey;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("accountNo", getAccountNo())
            .append("userId", getUserId())
            .append("wechatUnionid", getWechatUnionid())
            .append("miniOpenid", getMiniOpenid())
            .append("sex", getSex())
            .append("birthday", getBirthday())
            .append("updateBirthdayDate", getUpdateBirthdayDate())
            .append("mobile", getMobile())
            .append("wechatHead", getWechatHead())
            .append("cardChannel", getCardChannel())
            .append("lastUpdateChannelTime", getLastUpdateChannelTime())
            .append("name", getName())
            .append("nickname", getNickname())
            .append("avatar", getAvatar())
            .append("sessionKey", getSessionKey())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
